package model

const ToDoCalendarTabName = "todo_calendar_tab"

type ToDoCalendarTab struct {
	Id        *int64  `json:"id"`
	Content   *string `json:"content"`
	StartTime *string `json:"startTime"`
	EndTime   *string `json:"endTime"`
	Ctime     *int64  `json:"ctime"`
	Mtime     *int64  `json:"mtime"`
}

// 绑定表名
func (p *ToDoCalendarTab) TableName() string {
	return ToDoCalendarTabName
}

//CREATE TABLE `todo_calendar_tab` (
//`id` bigint NOT NULL AUTO_INCREMENT,
//`content` varchar(500) NOT NULL,
//`start_time` datetime NOT NULL COMMENT '开始时间',
//`end_time` datetime NOT NULL COMMENT '结束时间',
//`ctime` bigint NOT NULL COMMENT '创建时间',
//`mtime` bigint NOT NULL COMMENT '修改时间',
//PRIMARY KEY (`id`)
//) ENGINE=InnoDB AUTO_INCREMENT=125 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
